if ENABLE_PROTOCOL_MSN

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../build/
ASSEMBLY_NAME=Galaxium.Protocol.Msn
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN =

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-r:../../build/Galaxium.Client.dll \
	-r:../../build/Galaxium.Core.dll \
	-r:../../build/Galaxium.Gui.dll \
	-r:../../build/Galaxium.Protocol.dll \
	-r:System \
	-r:System.Drawing \
	-r:System.Web \
	-r:System.Web.Services \
	-r:System.Xml

RESOURCES = Galaxium.Protocol.Msn.addin 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Abstract/AbstractChallenge.cs \
	Abstract/AbstractMsnCommand.cs \
	Abstract/AbstractMsnCommandParser.cs \
	Abstract/AbstractMsnContactCommand.cs \
	Abstract/AbstractMsnContent.cs \
	Abstract/AbstractMsnP2PApplication.cs \
	Activities/ReceivedNudgeActivity.cs \
	Activities/ReceivedVoiceClipActivity.cs \
	Activities/ReceivedWinkActivity.cs \
	Attributes/CommandHandlerAttribute.cs \
	Attributes/ContentHandlerAttribute.cs \
	Attributes/ExpectResponseAttribute.cs \
	Attributes/MsnCommandAttribute.cs \
	Attributes/MsnContentAttribute.cs \
	Attributes/MsnP2PApplicationAttribute.cs \
	Attributes/PayloadCommandAttribute.cs \
	Attributes/RequireSecurityTokensAttribute.cs \
	Attributes/TransactionCommandAttribute.cs \
	CabExtract.cs \
	Challenge.cs \
	Commands/ACKCommand.cs \
	Commands/ADLCommand.cs \
	Commands/ANSCommand.cs \
	Commands/BLPCommand.cs \
	Commands/BYECommand.cs \
	Commands/CALCommand.cs \
	Commands/CHGCommand.cs \
	Commands/CHLCommand.cs \
	Commands/ContentCommand.cs \
	Commands/CVRCommand.cs \
	Commands/ErrorCommand.cs \
	Commands/FLNCommand.cs \
	Commands/GCFCommand.cs \
	Commands/ILNCommand.cs \
	Commands/IROCommand.cs \
	Commands/JOICommand.cs \
	Commands/ListCommand.cs \
	Commands/MIMECommand.cs \
	Commands/MSGCommand.cs \
	Commands/NAKCommand.cs \
	Commands/NLNCommand.cs \
	Commands/NOTCommand.cs \
	Commands/OUTCommand.cs \
	Commands/PNGCommand.cs \
	Commands/PRPCommand.cs \
	Commands/QNGCommand.cs \
	Commands/QRYCommand.cs \
	Commands/RMLCommand.cs \
	Commands/RNGCommand.cs \
	Commands/SBSCommand.cs \
	Commands/StatusCommand.cs \
	Commands/UBMCommand.cs \
	Commands/UBNCommand.cs \
	Commands/UBXCommand.cs \
	Commands/USRCommand.cs \
	Commands/UUMCommand.cs \
	Commands/UUNCommand.cs \
	Commands/UUXCommand.cs \
	Commands/VERCommand.cs \
	Commands/XFRCommand.cs \
	Conditions/BlockedContactCondition.cs \
	Connections/CommandConnection.cs \
	Connections/DirectTCPConnection.cs \
	Connections/HTTPConnection.cs \
	Connections/NSConnection.cs \
	Connections/SBConnection.cs \
	Connections/WebcamConnection.cs \
	Content/ActiveEmailContent.cs \
	Content/ClientCapsContent.cs \
	Content/ControlContent.cs \
	Content/DataCastContent.cs \
	Content/EmailContent.cs \
	Content/EmoticonContent.cs \
	Content/GifContent.cs \
	Content/InitialEmailContent.cs \
	Content/KeepAliveContent.cs \
	Content/MIMEContent.cs \
	Content/OIMNotificationContent.cs \
	Content/P2PContent.cs \
	Content/PlainTextContent.cs \
	Content/ProfileContent.cs \
	Entities/MsnAccount.cs \
	Entities/MsnContact.cs \
	Entities/MsnCurrentMedia.cs \
	Entities/MsnGroup.cs \
	Entities/MsnPresence.cs \
	Enums/InkType.cs \
	Enums/MSGAckType.cs \
	Enums/MsnCharacterSet.cs \
	Enums/MsnClientIdentifier.cs \
	Enums/MsnConnectionType.cs \
	Enums/MsnListType.cs \
	Enums/MsnObjectType.cs \
	Enums/MsnPitchFamily.cs \
	Enums/MsnProtocolVersion.cs \
	Enums/Network.cs \
	Enums/P2PHeaderFlag.cs \
	EventArgs/ActionMessageEventArgs.cs \
	EventArgs/ContactPersonalMessageEventArgs.cs \
	EventArgs/ContactSongEventArgs.cs \
	EventArgs/InkEventArgs.cs \
	EventArgs/InviteReceivedEventArgs.cs \
	EventArgs/VoiceClipEventArgs.cs \
	EventArgs/WebcamFrameReceivedEventArgs.cs \
	EventArgs/WinkEventArgs.cs \
	Interfaces/IChallenge.cs \
	Interfaces/IMsnCommand.cs \
	Interfaces/IMsnCommandParser.cs \
	Interfaces/IMsnContent.cs \
	Interfaces/IMsnEntity.cs \
	Interfaces/IMsnMSGCommand.cs \
	Interfaces/IMsnP2PApplication.cs \
	Interfaces/IMsnP2PBridge.cs \
	Interfaces/IMsnSoapRequest.cs \
	Interfaces/IMsnSoapResponse.cs \
	Interfaces/IMsnSoapResponseParser.cs \
	MessengerPlusSplitter.cs \
	MIMECollection.cs \
	MsnAccountCache.cs \
	MsnClientConfig.cs \
	MsnConstants.cs \
	MsnConversation.cs \
	MsnConversationManager.cs \
	MsnError.cs \
	MsnFileTransfer.cs \
	MsnNSConnectionInfo.cs \
	MsnOfflineTextMessage.cs \
	MsnProtocol.cs \
	MsnSBConnectionInfo.cs \
	MsnSession.cs \
	MsnTextMessage.cs \
	MsnTextStyle.cs \
	Objects/MsnDisplayImage.cs \
	Objects/MsnDynamicDisplayPicture.cs \
	Objects/MsnEmoticon.cs \
	Objects/MsnObject.cs \
	Objects/MsnVoiceClip.cs \
	Objects/MsnWink.cs \
	P2P/Applications/P2PActivity.cs \
	P2P/Applications/P2PFileTransfer.cs \
	P2P/Applications/P2PObjectLookup.cs \
	P2P/Applications/P2PObjectTransfer.cs \
	P2P/Applications/P2PShowWebcam.cs \
	P2P/Applications/P2PViewWebcam.cs \
	P2P/Applications/P2PWebcamBase.cs \
	P2P/FTContext.cs \
	P2P/MsnP2PSession.cs \
	P2P/P2PBinaryHeader.cs \
	P2P/P2PMessage.cs \
	P2P/SLP/SLPMessage.cs \
	P2P/SLP/SLPMessageParser.cs \
	P2P/SLP/SLPRequestMessage.cs \
	P2P/SLP/SLPStatusMessage.cs \
	PassportCertificatePolicy.cs \
	SecurityToken.cs \
	SOAP/BodyParts/AddressBook/AB.cs \
	SOAP/BodyParts/AddressBook/ABContact.cs \
	SOAP/BodyParts/AddressBook/ABContactAddOptions.cs \
	SOAP/BodyParts/AddressBook/ABContactAddResult.cs \
	SOAP/BodyParts/AddressBook/ABFindAllResult.cs \
	SOAP/BodyParts/AddressBook/ABGroup.cs \
	SOAP/BodyParts/AddressBook/ABGroupAddInfo.cs \
	SOAP/BodyParts/AddressBook/ABGroupAddOptions.cs \
	SOAP/BodyParts/AddressBook/ABGroupAddResult.cs \
	SOAP/BodyParts/AddressBook/ABGroupContactAddOptions.cs \
	SOAP/BodyParts/AddressBook/ABGroupContactAddResult.cs \
	SOAP/BodyParts/AddressBook/ABInfo.cs \
	SOAP/BodyParts/AddressBook/Annotation.cs \
	SOAP/BodyParts/AddressBook/ContactEmail.cs \
	SOAP/BodyParts/AddressBook/ContactInfo.cs \
	SOAP/BodyParts/AddressBook/FindMembershipResult.cs \
	SOAP/BodyParts/AddressBook/GroupFilter.cs \
	SOAP/BodyParts/AddressBook/GroupInfo.cs \
	SOAP/BodyParts/AddressBook/Member.cs \
	SOAP/BodyParts/AddressBook/Membership.cs \
	SOAP/BodyParts/AddressBook/MessengerMemberInfo.cs \
	SOAP/BodyParts/AddressBook/OwnerNamespace.cs \
	SOAP/BodyParts/AddressBook/ServiceFilter.cs \
	SOAP/BodyParts/AddressBook/ServiceHandle.cs \
	SOAP/BodyParts/AddressBook/ServiceInfo.cs \
	SOAP/BodyParts/AddressBook/ServiceType.cs \
	SOAP/BodyParts/OIMStore/StoreResponse.cs \
	SOAP/BodyParts/Passport/AppliesTo.cs \
	SOAP/BodyParts/Passport/BinarySecurityToken.cs \
	SOAP/BodyParts/Passport/CipherData.cs \
	SOAP/BodyParts/Passport/EncryptedData.cs \
	SOAP/BodyParts/Passport/EncryptionMethod.cs \
	SOAP/BodyParts/Passport/EndpointReference.cs \
	SOAP/BodyParts/Passport/KeyInfo.cs \
	SOAP/BodyParts/Passport/LifeTime.cs \
	SOAP/BodyParts/Passport/PolicyReference.cs \
	SOAP/BodyParts/Passport/RequestedProofToken.cs \
	SOAP/BodyParts/Passport/RequestedSecurityToken.cs \
	SOAP/BodyParts/Passport/RequestSecurityToken.cs \
	SOAP/BodyParts/Passport/RequestSecurityTokenResponse.cs \
	SOAP/BodyParts/Passport/Service.cs \
	SOAP/BodyParts/SchematizedStore/Document.cs \
	SOAP/BodyParts/SchematizedStore/DocumentStream.cs \
	SOAP/BodyParts/SchematizedStore/ExpressionProfile.cs \
	SOAP/BodyParts/SchematizedStore/ExpressionProfileAttributes.cs \
	SOAP/BodyParts/SchematizedStore/GetProfileResult.cs \
	SOAP/BodyParts/SchematizedStore/ObjectHandle.cs \
	SOAP/BodyParts/SchematizedStore/Profile.cs \
	SOAP/BodyParts/SchematizedStore/ProfileAlias.cs \
	SOAP/BodyParts/SchematizedStore/ProfileAttributes.cs \
	SOAP/BodyParts/SchematizedStore/ProfileHandle.cs \
	SOAP/BodyParts/SchematizedStore/Relationship.cs \
	SOAP/Headers/ABApplicationHeader.cs \
	SOAP/Headers/ABAuthHeader.cs \
	SOAP/Headers/FromHeader.cs \
	SOAP/Headers/PassportAuthInfoHeader.cs \
	SOAP/Headers/PassportCookieHeader.cs \
	SOAP/Headers/SequenceHeader.cs \
	SOAP/Headers/ServiceHeader.cs \
	SOAP/Headers/StorageApplicationHeader.cs \
	SOAP/Headers/StorageUserHeader.cs \
	SOAP/Headers/TicketHeader.cs \
	SOAP/Headers/ToHeader.cs \
	SOAP/Headers/WSSecurityHeader.cs \
	SOAP/LogSoapExtension.cs \
	SOAP/MsnSoapService.cs \
	SOAP/MsnSoapWebResponse.cs \
	SOAP/PassportFaultFix.cs \
	SOAP/Services/ABService.cs \
	SOAP/Services/OIMService.cs \
	SOAP/Services/OIMStoreService.cs \
	SOAP/Services/PassportService.cs \
	SOAP/Services/SharingService.cs \
	SOAP/Services/StoreService.cs \
	SOAP/SoapConstants.cs \
	Utilities/MsnByteArrayUtility.cs \
	Utilities/MsnContentUtility.cs \
	Utilities/MsnEncodingUtility.cs \
	Utilities/MsnP2PUtility.cs \
	Utilities/MsnXmlUtility.cs

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
endif
